package com.cody.dao;

import com.cody.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/6 - 20:28
 */
public interface TeacherDao {

    List<Teacher> queryAllTeacher();

    Teacher querySingleTeacher(@Param("teaName") String teaName, @Param("teaPassword") String teaPassword);

    Teacher querySingleTeacherByTeacherNumber(@Param("teacherNumber") String teacherNumber);

    List<Teacher> queryTeacherByKeyword(@Param("keyword") String keyword);

    boolean insertSingleTeacher(@Param("teacher") Teacher teacher);

    boolean updateTeacherInfo(@Param("teacher") Teacher teacher);

    boolean updateTeacherPwd(@Param("teacherNumber") String teacherNumber, @Param("teacherPassword") String teacherPassword);

    boolean delTeacherByTeacherId(@Param("teacherId") Integer teacherId);
}
